<html>
<head><meta charset="utf-8"><title>Merging deleted branch to a new branch · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Merging.20deleted.20branch.20to.20a.20new.20branch.html">Merging deleted branch to a new branch</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="228648232"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Merging%20deleted%20branch%20to%20a%20new%20branch/near/228648232" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> osa1 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Merging.20deleted.20branch.20to.20a.20new.20branch.html#228648232">(Mar 03 2021 at 19:04)</a>:</h4>
<p>I'd like to merge the code in <a href="https://github.com/rust-lang/rust/issues/82397">#82397</a> to a branch of mine, and run perf evaluation on CI. However the branch for that PR was deleted by the author, and I can't see the commits (<code>git show</code> fails with "bad object") even after fetching their git repo. Is there a way to get the commits in that PR somehow?</p>



<a name="228648481"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Merging%20deleted%20branch%20to%20a%20new%20branch/near/228648481" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> hyd-dev <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Merging.20deleted.20branch.20to.20a.20new.20branch.html#228648481">(Mar 03 2021 at 19:05)</a>:</h4>
<p>You can use <code>git fetch https://github.com/rust-lang/rust.git refs/pull/82397/head</code> to fetch commits of that PR.</p>



<a name="228648724"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Merging%20deleted%20branch%20to%20a%20new%20branch/near/228648724" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> osa1 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Merging.20deleted.20branch.20to.20a.20new.20branch.html#228648724">(Mar 03 2021 at 19:07)</a>:</h4>
<p>Perfect, thanks!</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>